package com.topvision.config.security;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author HanFeng
 * @version V0.0.1
 * @Title: PasswordEncoderConfig
 * @Package com.yonghui.oauth.security2.config
 * @Description: 加密算法
 * @date 2017/4/10
 */
@Configuration
public class PasswordEncoderConfig {
    @Bean
    protected BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
